Skip to main content

All Questions

Tagged with
1vote
0answers
35views

MathJax not rendering equations in WordPress AJAX-loaded content (renders only after manual typesetPromise())

I’m building a custom WordPress plugin that loads math-based questions and answers using AJAX. These questions contain LaTeX-style MathJax expressions (e.g., $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$)...
Annant Srivastava's user avatar
1vote
0answers
61views

WooCommerce custom ajax product filter

I am trying to build a custom ajax product filters. My main objective is when user is on X category page, I will show him some size option(as checkbox) for filtering. So when user check single/...
Sreenath Kumar's user avatar
0votes
0answers
26views

get_post_field 'post_content' via Ajax always undefined

I'm running the following handler to process request to a custom post type's contents add_action('wp_ajax_uipp_get_button_content', 'uipp_get_button_content'); add_action('...
Jeff Imperial's user avatar
0votes
0answers
22views

Loading Gutenberg Blocks with Ajax is stripping away scripts

I'm successfully loading a custom post type's wp-content using ajax, but when it loads, a whole lot of the scripts are being stripped away. fetch(ajax_object.ajax_url, { method: "POST", ...
jeffimperial's user avatar
0votes
1answer
58views

Woocommerce - ajax load more not working when ajax filtering by two or more categories

I made a code for woocommerce product listings with ajax load more by scroll and ajax filters by category - all works great, but there is one case, when it didn't. Only on the main shop page when I ...
Joint's user avatar
  • 1,226
0votes
0answers
92views

How to change shortcode after user interacts with front-end button?

I'm using Royal Audio Player as a plugin for a website I'm creating, and I want to have something similar to what this guy created for his Voiceover website. Essentially, I want text above the audio ...
Personality Main's user avatar
0votes
0answers
82views

How to pass an array from Javascript to admin-ajax.php using Fetch for processing

I have been struggling these days when passing a data array in WordPress to be processed via admin-ajax.php. I have added a button in the WooCommerce hook 'woocommerce_after_shop_loop_item' that ...
Mehdi's user avatar
  • 1,770
2votes
1answer
44views

How can I with implement ajax based numbered pagination to posts which are displayed via ajax?

What I'm trying to accomplish is producing numbered pagination for posts which are loaded via an ajax function. I have to make the numbered pagination work via ajax as well. Explanation of each code ...
Chris's user avatar
0votes
1answer
61views

How to use AJAX in a widget only on the admin backend?

I'm trying to create a simple WordPress widget for AI text generation. The widget should allow the user to type a prompt, set a word limit, and click a "Generate Text" button. I want to use ...
DEV186516844's user avatar
1vote
2answers
76views

How to handle simultaneous AJAX requests which update the same metadata?

In my Wordpress site, each user has a meta data key (i.e., "saved") which contains a list of post IDs stored as an array. The list is updated everytime the user clicks the "save" ...
Power's user avatar
1vote
1answer
88views

WebP Express does not process images loaded via AJAX in WordPress

I am using the WebP Express plugin in WordPress, and it correctly replaces elements with tags when the page loads initially. However, when I load additional content via AJAX, the newly added images ...
Sergey Pervushin's user avatar
0votes
0answers
31views

WordPress AJAX Appending Data output a mystery "0" [duplicate]

I doubt anyone can help but I've been trying to figure this out for far too long! I have some AJAX that grabs some basic user meta and uses that for a WP_Query, then just overrides the list of items ...
Jon's user avatar
  • 361
0votes
1answer
42views

WordPress Add/Remove User Meta via AJAX

I'm trying to create a simple "favorite" product list. Basically, when viewing a list of products someone can click a button that adds it to your favorites. The idea is, they click the ...
Jon's user avatar
  • 361
0votes
0answers
80views

How can I prevent the page from refreshing and only update the cart using AJAX [duplicate]

I am using AJAX to update the WooCommerce cart without refreshing the entire page, and the code mostly works as expected. However, after updating the cart, the page still refreshes. I have already ...
VKS's user avatar
  • 17
-1votes
1answer
95views

Contact form 7 refreshing the page when i submit form. Form not submitting using Ajax form submission

I'm using Contact Form 7 in Wordpress. I have added a custom botton to submit form because i am displaying a confirm box if user click 'yes' then form submit but when user click yes then page reload ...
Sunshine's user avatar

153050per page
close